SkinTemplate: Improve remote content handling in content navigation URLs
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 13 Sep 2016 04:43:56 +0000 (21:43 -0700)
committerLegoktm <legoktm.wikipedia@gmail.com>
Tue, 13 Sep 2016 05:02:53 +0000 (05:02 +0000)
commit67d589450e4ea93d677eb342f2bbec4711a5de97
tree5a7822035b83ee6229cbd1fe6be59cca1fdb904b
parent148f7bf0d1e20f395891eb58cb506ef37d752eaf
SkinTemplate: Improve remote content handling in content navigation URLs

Use Title::isKnown() to determine whether to display the "view" view link
instead of checking $isForeignFile, since that includes all remote
content. This allows us to remove the GlobalUserPage hook that made the
tab look as if it existed.

Change-Id: Ibee7b64511fba8c2934da3c7a3bdd52090dcb58c
includes/skins/SkinTemplate.php